/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-03-06
 * Time: 23:29
 */
public class Test222 {
    public static void iSwimming(ISwimming iSwimming) {
        iSwimming.swim();
    }
    public static void walks(Walk walk1) {
        walk1.walk();
    }

    public static void main(String[] args) {
        iSwimming(new Fish("小鱼儿",1));
        walks(new Robot());

    }
}
